package com.tn.controller.weigh;


import com.tn.controller.alarm.common.model.CommonVO;
import com.tn.controller.alarm.common.model.PageInput;
import com.tn.controller.alarm.common.model.PageResult;
import com.tn.controller.alarm.common.model.weigh.vo.WeighLogInfoVO;
import com.tn.controller.alarm.common.model.weigh.vo.WeighLogQueryVO;
import com.tn.exception.InvalidParamException;
import com.tn.service.weigh.WeightloginfoDeleteService;
import com.tn.utils.CheckParamUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author YuzSuzuki
 * @since 2023-06-12
 */
@RestController
@RequestMapping("/aucy")
public class WeightloginfoDeleteController {

    @Autowired
    private WeightloginfoDeleteService weightloginfoDeleteService;

    /**
     * 查询磅房日志信息
     *
     * @param queryVO 查询条件
     * @return 磅房日志信息
     * @throws InvalidParamException 异常
     */
    @RequestMapping("/weightloginfoDelete")
    public CommonVO<PageResult<WeighLogInfoVO>> weighLogInfo(@RequestBody PageInput<WeighLogQueryVO> queryVO)
            throws InvalidParamException {
        CheckParamUtil.checkPageParam(queryVO.getCurPage(), queryVO.getPageSize());
        CheckParamUtil.checkNullRequiredParam(queryVO.getData());
        return weightloginfoDeleteService.getWeighLogInfo(queryVO.getCurPage(), queryVO.getPageSize(), queryVO.getData());

    }



}

